<script setup>
import {onMounted, ref} from "vue";
import {getHelpContent} from "@/js/apiHelper";

  const helpContent = ref("")
  onMounted(()=>{
    const getResult = getHelpContent()
    getResult.then((result)=>{
      helpContent.value=result.data
    }).catch(e=>{
      console.log('获取使用说明失败'+e)
    })
  })
</script>

<template>
  <div class="all-container">
    <div class="appearing-container">
      <h1>使用说明</h1>
      <p>{{ helpContent }}</p>
    </div>
  </div>

</template>

<style scoped>
  .all-container{
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
  }
  .appearing-container{
    position: absolute;
    left: 50%;
    top: 50%;
    width: 80%;
    height: 90%;
    background-color: #ffffffee;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    color: #383838;
  }
  .appearing-container h1{
    font-weight: bold;
    font-size: 20px;
  }
  .appearing-container p{
    font-size: 16px;
    letter-spacing: 1px;
    white-space: pre-line;
    flex: 1;
    line-height: 20px;
    margin-top: 12px;
  }


</style>